<table class="table">
	<thead>
		<tr>
			<th width="20%">活动标题</th>
			<th width="35%">活动描述</th>
			<th width="15%">开始时间</th>
			<th width="15%">结束时间</th>
			<th width="15%" colspan="3"></th>
		</tr>
	</thead>

	<tbody>
	<% @activities.each do |activity| %>
		<tr>
		<td><%= activity.title %></td>
		<td><%= activity.desc %></td>
		<td><%= activity.start_time %></td>
		<td><%= activity.end_time %></td>
		<td><%= link_to '显示', activity %></td>
		<td><%= link_to '编辑', edit_activity_path(activity) %></td>
		<td><%= link_to '删除', activity, method: :delete, data: { confirm: 'Are you sure?' } %></td>
	</tr>
<% end %>
	</tbody>
</table>
